package pkmn.status;

public class Status {
    private StatusEnum statusEnum;
    private int turns;

    public Status(){
        this.statusEnum = StatusEnum.none;
    }

    public Status(StatusEnum statusEnum){
        this.statusEnum = statusEnum;
    }

    public Status(StatusEnum statusEnum, int turns){
        this.statusEnum = statusEnum;
        this.turns = turns;
    }

    public StatusEnum getStatusEnum(){
        return this.statusEnum;
    }

    public int getTurns(){
        return this.turns;
    }

    public void decTurns(){
        if(this.turns > 0)
        this.turns--;
    }

    public boolean equals(StatusEnum statusEnum){
        return this.statusEnum == statusEnum;
    }

    @Override
    public String toString(){
        return this.statusEnum.toString();
    }
}
